package cn.sunlelin.educationserver.service;

import cn.sunlelin.educationserver.entity.Lesson;

import java.util.List;
import java.util.Map;

public interface LessonService {
    public Boolean createLesson(Lesson lesson);
    public Boolean updateLesson(Lesson lesson);

    public Lesson selectLessonById(Integer lessonId);

    List<Map<String,Object>> seleteLessonByCourseId(Integer courseId, Integer userId);

    List<Map<String,Object>> seleteLessonByCourseIdUpdateTimeDesc(Integer courseId);

    public Boolean deleteLesson(Integer lessonId);
}
